<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Z-7
  Date: 2022/2/23
  Time: 14:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/resource/bootstrap4/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="/resource/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="/resource/bootstrap4/js/bootstrap.js"></script>
    <title>列表</title>
</head>
<body>
        <h3>数据来源<font color="red">${from}</font></h3>
        <h3>欢迎<font color="blue">${LOGIN_USER.name}</font>登录</h3>
        <form action="/goods/list" method="post"></form>
        <table class="table table-hover">
            <thead>
            <tr>
                <th scope="col">序号</th>
                <th scope="col">名称</th>
                <th scope="col">原价</th>
                <th scope="col">现价</th>
                <th scope="col">库存</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${page.list}" var="goods">
                <tr>
                    <th scope="row">${goods.id}</th>
                    <td>${goods.name}</td>
                    <td>${goods.price}</td>
                    <td>${goods.currentPrice}</td>
                    <td>${goods.num}</td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
<jsp:include page="/resource/page/pages3.jsp"/>
</body>
</html>
